package com.aidl.demo.entity;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/7/27 0027.
 */

public class Video implements Serializable {
    public Long id;
    public String title;
    public String coverImage;
    public String area;
    public String generation;
    public String language;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Video teleplay = (Video) o;

        if (!id.equals(teleplay.id)) return false;
        return title.equals(teleplay.title);

    }

    @Override
    public int hashCode() {
        int result = id.hashCode();
        result = 31 * result + title.hashCode();
        return result;
    }
}

